//01 UI组件
function Counter(props){
    const {value,increament,decreament} = props
     
    return (
        <p>
        Clicked : {value } times
        <button onClick={increament}>+</button>
        <button onClick={decreament}>-</button>
      </p>
    )
}

//02 props 检查
// Counter.propsTypes ={
//     value: PropTypes.number.isRequired,
//     increatement:PropTypes.fuc
// }

export default Counter

